docker rm -f map web gateway
docker rmi -f $(docker images 192.168.121.135:8050/refuel/gateway -qa)
docker rmi -f $(docker images 192.168.121.135:8050/refuel/web -qa)
docker rmi -f $(docker images 192.168.121.135:8050/refuel/map -qa)
docker login -u admin -p Harbor12345 192.168.121.135:8050
docker pull 192.168.121.135:8050/refuel/map:$1
docker pull 192.168.121.135:8050/refuel/web:$1
docker pull 192.168.121.135:8050/refuel/gateway:$1
docker run -p 8887:8887 --name=gateway -d -m 280m --cpus 1 -e JAVA_OPTS='-Xmx280m -Xms280m -Xmn96m -Xss228k -XX:SurvivorRatio=4 -XX:MaxTenuringThreshold=0 -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=2' 192.168.121.135:8050/refuel/gateway:$1
docker run --name=map -d -m 320m --cpus 1 -e JAVA_OPTS='-Xmx320m -Xms320m -Xmn96m -Xss228k -XX:SurvivorRatio=4 -XX:MaxTenuringThreshold=0 -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=2' 192.168.121.135:8050/refuel/map:$1
docker run -p 8888:8888 -p 1199:1199 -v /home/picture:/home/picture -v /home/refuel/logs:/home/refuel/logs -d -m 668m --cpus 1 -e JAVA_OPTS='-Xmx668m  -Xms512m -Xmn256m -Xss256k -XX:SurvivorRatio=4 -XX:MaxTenuringThreshold=0 -XX:+UseParallelGC -XX:+UseParallelOldGC -XX:ParallelGCThreads=2 -Djava.rmi.server.hostname=192.168.121.135 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.rmi.port=1199 -Dcom.sun.management.jmxremote.port=1199 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false' --name=web 192.168.121.135:8050/refuel/web:$1
#docker rmi -f $(docker images -f 'dangling=true' -qa)
